﻿using System;

namespace RrslLite
{
    public class BatchVoidCall : BatchCall
    {
        private readonly Action _handler;

        public BatchVoidCall(Action<BatchCall> call, Action handler)
            : base(call)
        {
            _handler = handler;
        }


        public override void Callback(object data)
        {
            _handler();
        }
    }
}